<script src="<?php echo base_url('assets/js/pedidoClase.js') ?>"></script>
<blockquote>
<p>Pedí tu clase</p>
</blockquote>
<p>
<form class="form-horizontal" method='POST'>
<fieldset>

 <?php iF(isset($msg)){?>
    <div class="alert alert-<?php echo $operation_result ?>"><a href="#" class="close" data-dismiss="alert">&times;</a> <?php echo $msg; ?> </div>
    <?php } ?>

<!-- Text input-->
<div class="control-group">
  <label class="control-label" for="name">Nombre</label>
  <div class="controls">
    <input id="name" name="name" placeholder="Nombre y Apellido" class="input-xlarge" required="" type="text">
    
  </div>
</div>

<!-- Select Basic -->
<div class="control-group">
  <label class="control-label" for="nivel">Nivel</label>
  <div class="controls">
     
     <select id="nivel" name="nivel" class="input-xlarge">
         <?php foreach($niveles as $nivel){?>
         <option value="<?php echo $nivel->id; ?>"
                   >
                        <?php echo $nivel->nivel; ?></option>
         <?php }?>
     
    </select>
  </div>
</div>
<div class="control-group">
  <label class="control-label" for="materia">Materia</label>
  <div class="controls">
     
     <select id="materia" name="materia" class="input-xlarge">
         <?php foreach($materias as $materia){?>
         <option value="<?php echo $materia->id; ?>"
                   >
                        <?php echo $materia->materia; ?></option>
         <?php }?>
     
    </select>
  </div>
</div>



<!-- Text input-->
<div class="control-group">
  <label class="control-label" for="telefono">Telefono</label>
  <div class="controls">
    <input id="telefono" name="telefono" placeholder="Telefono" class="input-xlarge" required="" type="text">
    
  </div>
</div>

<!-- Text input-->
<div class="control-group">
  <label class="control-label" for="mail">Mail</label>
  <div class="controls">
    <input id="mail" name="mail" placeholder="mail" class="input-xlarge" required="" type="text">
    
  </div>
</div>

<!-- Select Basic -->
<div class="control-group">
  <label class="control-label" for="lugar">Lugar</label>
  <div class="controls">
    <select id="lugar" name="lugar" class="input-xlarge">
      <option value="facultad">Facultad(Ciudad Universitaria)</option>
      <option value="domicilio profesor">Domicilio del profesor</option>
      <option value="casa">Tu casa</option>
    </select>
  </div>
</div>
<div id="divCasa">
<!-- Text input-->
<div class="control-group" >
  <label class="control-label" for="distrito">Distrito</label>
  <div class="controls">
     <select id="distrito" name="distrito" class="input-xlarge">
        <option value="cf">Capital Federal</option>
      <option value="gba">Gran Buenos Aires</option>     
    </select>
    
  </div>
</div>
<div class="control-group" id="divBarrio">
  <label class="control-label" for="barrio">Barrios</label>
  <div class="controls">
     <select id="barrio" name="barrio" class="input-xlarge">
        <?php
                foreach ($barrios as $row)
                {                    
                    ?>
                <option value="<?php echo $row->id;?>"
                       >
                            <?php echo $row->nombre;?></option>
                
                <?php
                }
                ?>
     
    </select>
    
  </div>
</div>
<div class="control-group" id="divLocalidad">
  <label class="control-label" for="localidad">Localidad</label>
  <div class="controls">
     <select id="localidad" name="localidad" class="input-xlarge">
        <?php
        foreach ($partidos as $row) {
            ?>
            <option value="<?php echo $row->id; ?>"
                   >
                        <?php echo $row->partido; ?></option>

            <?php
        }
        ?>
     
    </select>
    
  </div>
</div>
</div>

<!-- Textarea -->
<div class="control-group">
  <label class="control-label" for="comentario">Comentario</label>
  <div class="controls">                     
    <textarea id="comentario" name="comentario"></textarea>
  </div>
</div>
<div class="control-group">
  <label class="control-label" for="enviar"></label>
  <div class="controls">
    <button id="enviar" name="enviar" class="btn btn-info">Enviar</button>
  </div>
</div>
</fieldset>
</form></p>